<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentEditTypeAddChannelType extends Migrator
{
    public function up()
    {
        $this->table('agent_channel')
            ->addColumn('channel_type', 'integer', ['limit' => 15, 'default' => 0, 'comment' => '渠道类型'])
            ->update();


    }

    public function down()
    {

        $this->table('agent_channel')->removeColumn('channel_type');
    }
}
